package com.chaodev.base.dao;

import com.chaodev.base.model.LearningRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface LearningRecordDao {
    List<LinkedHashMap<String, Object>> queryData(Map<String, Object> map);

    List<LearningRecord> queryDataByTrainingId(Integer trainingId);

    int insert(LearningRecord record);

    int updateByIdSelective(LearningRecord record);

    int deleteById(int id);
}